const express = require('express')
const app = express()

const bodyParser = require('body-parser')
app.use(bodyParser.urlencoded({extended:false}))

app.set('view engine','ejs')
app.set('views','./views')
app.use('/node_modules',express.static('./node_modules'))

const str1 = require('./router/index.js')
app.use(str1)
const str2 = require('./router/user.js')
app.use(str2)


app.listen(3000,()=>{
    console.log('http://127.0.0.1:3000');
    
})